pv-grub: fix boot crash when no fb is available
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 6 Apr 2010 06:13:01 +0000 (07:13 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 6 Apr 2010 06:13:01 +0000 (07:13 +0100)
commitefdf57d6133754c78a095ae15174f83f88039fb8
tree32d989f6852e0fd7d0e787e63dc5f71cbc93231f
parentd98d3c520857f706fb83cdb9d398b7b8b1733141
pv-grub: fix boot crash when no fb is available

When no fb is available, init_fbfront will return, so the local
semaphore for synchronization with the kbd thread would get dropped.
Using a global static semaphore instead fixes this.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
stubdom/grub/mini-os.c